#region

using System.Collections.Generic;

#endregion

namespace EditeurSyntaxiqueVocal.Languages.LanguageZ
{
    internal class CompareMotFr : IComparer<string[]>
    {
        private readonly int pos;

        /// <summary>
        /// Initialise une nouvelle instance de la classe <see cref="T:System.Object"></see>.
        /// </summary>
        public CompareMotFr(int pos)
        {
            this.pos = pos;
        }

        #region IComparer<string[]> Membres

        public int Compare(string[] x, string[] y)
        {
            return x[pos].ToLower().CompareTo(y[pos].ToLower());
        }

        #endregion
    }
}